<div class="view">
<h2><?php __('Thành phần hóa chất trong Thuốc');?></h2>
<p>
<?php
$paginator->options(array('url'=>$this->passedArgs));
echo $paginator->counter(array(
'format' => __('Hiện có %count% mẫu tin - Trang %page%/%pages%', true)
));
?></p>
<table cellpadding="0" cellspacing="0">
<tr>
	<th><?php echo $paginator->sort('STT','id');?></th>
	<th><?php echo $paginator->sort('Tên hoạt chất','hoatchat_id');?></th>
	<!--<th><?php echo $paginator->sort('thuoc_id');?></th> -->
	<th class="actions"><?php __('Hành động');?></th>
</tr>
<?php
$i = 0; $j=1;
foreach ($hcThuocs as $hcThuoc):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td>
			<?php 
            echo $j;
            $j++;
            //echo $hcThuoc['HcThuoc']['id']; ?>
		</td>
		<td>
			<?php echo $hcThuoc['Hoatchat']['ten_hc']; ?>
		</td>
	<!--
		<td>
			<?php echo $hcThuoc['HcThuoc']['thuoc_id']; ?>
		</td>
		-->
		<td class="actions">
			<?php //echo $html->link(__('View', true), array('action' => 'view', $hcThuoc['HcThuoc']['id'])); ?>
			<?php //echo $html->link(__('Edit', true), array('action' => 'edit', $hcThuoc['HcThuoc']['id'])); ?>
			<?php echo $html->link(__('Xóa', true), array('action' => 'delete', $hcThuoc['HcThuoc']['id']), null, sprintf(__('Bạn có chắc muốn xóa # %s?', true), $hcThuoc['HcThuoc']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('Trước', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('Sau', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Thêm', true), array('action' => 'add',$id)); ?></li>
	</ul>
</div>
